#!/bin/sh

. ../support/simple_eval_tools.sh

HEADER SNMPv2c traps received and sent by tools

SKIPIF NETSNMP_DISABLE_SNMPV2C
SKIPIFNOT USING_MIBII_VACM_CONF_MODULE

#
# Begin test
#

CONFIGTRAPD authcommunity log testcommunity
CONFIGTRAPD agentxsocket /dev/null

TRAPD_FLAGS="$TRAPD_FLAGS -On"

STARTTRAPD

CAPTURE "snmptrap -d -v 2c -c testcommunity $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPTRAPD_PORT 0 .1.3.6.1.6.3.1.1.5.1 .1.3.6.1.2.1.1.4.0 s blah"

STOPTRAPD

CHECKTRAPD ".1.3.6.1.6.3.1.1.4.1.0 = OID: .1.3.6.1.6.3.1.1.5.1"

FINISHED
